const Index = require('../app/controllers/Index');
const Designers = require('../app/controllers/Designers');
const Requirements = require('../app/controllers/Requirements');
const Works = require('../app/controllers/Works');
const Socket = require('../app/controllers/Socket');
const Demo = require('../app/controllers/Demo');

module.exports = function(app){
    // 首页
    app.get('/', Index.index);

    // 找设计师
    app.get('/Designers/List', Designers.designers);

    // 找需求
    app.get('/Requirements/List', Requirements.requirements);
    // 发布需求
    app.get('/Requirements/Create', Requirements.create);

    // 看案例
    app.get('/Works/List', Works.works);
    // 上传案例
    app.get('/Works/Create', Works.create);

    // Socket
    app.get('/Socket', Socket.socket);
    // Demo
    app.get('/Demo', Demo.demo);
}